#ifndef VIEW_QT_H
#define VIEW_QT_H
#include <QApplication>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QKeyEvent>
#include <QScrollBar>

class View_qt : public QGraphicsView
{
    Q_OBJECT
    friend class Scene_qt;
    qreal maxScale, minScale;
public:
    View_qt(QGraphicsScene* scene);
    ~View_qt();
    friend class Game_Scene;


protected:
    void keyPressEvent(QKeyEvent *event) override;
    void wheelEvent(QWheelEvent *event)  override;
    void mouseMoveEvent(QMouseEvent *event) override;
    int scale_times;
signals:
    void mouseMove(QMouseEvent *event);
    void mouseWheel(QWheelEvent *event);
    void keyPress(QKeyEvent *event);
};
#endif
